package dockyin.action.pattern.visitor;

public class Subject implements ISubject {
    private String data;

    public Subject(String data) {
        this.data = data;
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

    @Override
    public String getData() {
        return data;
    }
}
